   function selectAd(zoneid,divid){
	  var url = "http://ad.zing.vn/openx/www/delivery/aj.php?zoneid=" + zoneid + "&divid=" + divid + "&callback=handleRespond";   	   
   	  var m3_r = Math.floor(Math.random()*99999999999);
   	  url += "&cb=" + m3_r + "&loc=" + escape(window.location); 	
	  if (document.MAX_used != ','){
	  	  url += "&exclude=" + document.MAX_used;
	  } 	   
	  if (document.referrer){
	  	  url += "&referer=" + escape(document.referrer);
	  }
	  if (document.context){
	  	  url += "&context=" + escape(document.context); 	
	  }  	   
      var script = document.createElement("script");        
	  script.setAttribute("src",url);
	  script.setAttribute("type","text/javascript"); 	  
	  document.getElementsByTagName('head')[0].appendChild(script);	  
  }
  function handleRespond(data){
  	document.getElementById(data.divid).innerHTML = data.html;
  }
